#coding=utf-8
'''
Created on 2017-09-01

@author: sandy
'''

from pycommon import Const
from pycommon import RemoteManager
from pycommon import Pack as packet
from pycommon import Utils
import ServerConfig

def loginMgr():
    sid = RemoteManager.instance.sid
    ip = Utils.u2pstr(ServerConfig.instance.public_ip)
    port = ServerConfig.instance.public_port
    return packet.pack("HHsH",Const.CMD_LG2LGM_LOGIN,sid,ip,port)